<!--
    * Time    : 2021-03-11 13:43:17
    * Author  : zhangTj
    * Desc    : 文字组件
-->

<template>
    <div class="p-15p">
        <div class="font-14">
            <span class="text-danger" v-if="value.required">*</span>
            {{ index + 1 }}.{{ value.title || '标题' }}
        </div>
        <div class="py-1">
            <van-field v-model="value.content" clearable autosize placeholder="请输入内容" />
        </div>
    </div>
</template>

<script>
export default {
    name: 'TextInput',
    props: {
        index: {
            type: Number | String,
            default: 0
        },
        value: Object
    },
    computed: {}
}
</script>

<style lang="scss" scoped></style>
